//
//  GQHCommentModel.h
//  Xanthium
//
//  Created by GuanQinghao on 09/04/2018.
//  Copyright © 2018 GuanQinghao. All rights reserved.
//

#import "GQHBaseModel.h"

@interface GQHCommentModel : GQHBaseModel

/// 评论ID
@property (nonatomic, copy) NSString *qh_commentID;
/// 订单ID
@property (nonatomic, copy) NSString *qh_orderID;
/// 评分
@property (nonatomic, assign) float qh_score;
/// 评论内容
@property (nonatomic, copy) NSString *qh_commentContent;
/// 评论时间
@property (nonatomic, copy) NSString *qh_commentTime;


/// 评论人ID
@property (nonatomic, copy) NSString *qh_commentatorID;
/// 被评论人ID
@property (nonatomic, copy) NSString *qh_reviewerID;

/// 姓名
@property (nonatomic, copy) NSString *qh_name;
/// 用户类型
@property (nonatomic, copy) NSString *qh_type;
/// 头像
@property (nonatomic, copy) NSString *qh_avatar;

/// 评论人数
@property (nonatomic, assign) NSInteger qh_count;


/**
 "id": "4028b881627b535d01627b9a97bf0030",
 "waybillId": "4028b881627b535d01627b87fc5e0022",
 "score": 4.5,
 "evaluation": "这是评价内容",
 "evaluationTime": "2018-03-31 18:29:11",
 
 "evaluationPeople": "4028b881627b535d01627b62b96b000a",
 "byEvaluation": "4028b881627ab35a01627b19a03a0002",
 
 "userName": "任旭庚",
 "userType": "货主",
 "headImg": "afbb0c4c913642e99505bf2762c817c1.jpg"
 
 "evaCount": null,
 */

/// 获取评价 (评价我的和我评价的)
+ (void)qh_fetchCommentsWithParameters:(NSDictionary *)parameters success:(void(^)(BOOL status, NSNumber *code, NSString *message, NSArray<GQHCommentModel *> *comments))success failure:(void(^)(NSError *error))failure;

@end
